﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CameraＦollow : MonoBehaviour {
    public GameObject Brid;
    Vector3 Dis;
	// Use this for initialization
	void Start () {
        Dis = Brid.GetComponent<Transform>().position - transform.position;
    }
	
	// Update is called once per frame
	void Update () {
        transform.position = Brid.GetComponent<Transform>().position - Dis;

    }
}
